package com.google.code.server;

import java.util.concurrent.ConcurrentHashMap;

/**
 * 
 * @author Nadim Benabdenbi
 * 
 */
public class ServerRegistry {
	
	private static ConcurrentHashMap<String, Server> servers = new ConcurrentHashMap<String, Server>();
	
	public static void register(String name, Server server) {
		servers.put(name, server);
	}
	
	public static Server unregister(String name) {
		return servers.remove(name);
	}
}
